Page({

  /**
   * 页面的初始数据
   */
  data: {
    star:[
      {
        name:"金牛座",
        pic: 'jinniu.jpg'
    },
      {
        name: "双子座",
        pic: 'shuangzi.jpg'
      },
      {
        name: "水瓶座",
        pic: 'shuiping.jpg'
      },
      {
        name: "处女座",
        pic: 'chunv.jpg'
      },
      {
        name: "天蝎座",
        pic: 'tianxie.jpg'
      },
      {
        name: "巨蟹座",
        pic: 'juxie.jpg'
      },
      {
        name: "天秤座",
        pic: 'tiancheng.jpg'
      },
      {
        name: "狮子座",
        pic: 'shizi.jpg'
      },
      {
        name: "双鱼座",
        pic: 'shuangyu.jpg'
      },
      {
        name: "白羊座",
        pic: 'baiyang.jpg'
      },
      {
        name: "摩羯座",
        pic: 'mojie.jpg'
      },
      {
        name: "射手座",
        pic: 'sheshou.jpg'
      }    
      ]    
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
   
  },

  goToDetail(e){
    console.log(e)
    let name = e.currentTarget.dataset.name
    wx.navigateTo({
      url: '/pages/detail/detail?name='+name,
      success: function (res) { 

      },
     
    })
    
  }
})